package com.funcas.pcloud.upms.web;

import com.funcas.pcloud.common.ApiResult;
import com.funcas.pcloud.common.base.BaseController;
import com.funcas.pcloud.upms.facade.UnitRestFacade;
import com.funcas.pcloud.upms.service.IUnitService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author funcas
 * @version 1.0
 * @date 2018年10月14日
 */
public class UnitController extends BaseController implements UnitRestFacade {

    @Autowired
    private IUnitService unitService;


    @Override
    public ApiResult getOrgByParentId() {
        return null;
    }

    @Override
    public ApiResult getOrgLeave() {
        return success(unitService.findLeaveUnit());
    }
}
